package com.trmp.base.vehTeamMng.dao.impl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;

import org.springframework.data.jpa.repository.Modifying;

public class BaseVehInfoDaoImpl {
	@PersistenceContext
	private EntityManager em;
	

	@Modifying
	public void deleteByVheTeamId(String checkedTeamIdList)
	{
		String deleteTeamInfoStr = "delete from T_BASE_VEH where TEAM_ID in ("+checkedTeamIdList+")";
		Query queryVehInfo = em.createNativeQuery(deleteTeamInfoStr);
		queryVehInfo.executeUpdate();
		
	}

}
